<template>
   <div id="order">
     <div class="butt">
       <div id="buts">
      <el-button class="b" style="color: red;font-size: 16px;border: none;" @click="ordering">我的订单</el-button>
     <el-button class="b" style="color: red;font-size: 16px;border: none;" @click="unFinish">未支付订单</el-button>
     <el-button class="b" style="color: red;font-size: 16px;border: none;" @click="historyOrder">历史订单</el-button>
     </div>
       <div id="hr">
         <el-divider></el-divider>
       </div>
     <router-view></router-view>
     </div>
   </div>
</template>
<script>
  export default {
      data(){
          return{}
      },
      methods:{
          ordering(){
              this.$router.push("/ordering")
          },
          unFinish(){
              this.$router.push("/unFinish")
          },
          historyOrder(){
              this.$router.push("/histroyOrder")
          }
      },
     created() {
          this.$router.push("/ordering")
     }
  }
</script>
<style scoped>
  .butt{
    margin-left: -300px;
  }
  #order{
    width: 800px;
    height: 650px;
    border:#DCDFE6 1px solid ;
    border-radius: 10px;
    margin-left: 100px;
    margin-top: 20px;
    box-shadow: 0px 0px 5px #DCDFE6;
  }
  #hr{
    float: left;
    width: 800px;
    margin-left: 300px;
    margin-top: -5px;
  }
 #buts{
   float: left;
   margin-left: 400px;
   margin-top: 20px;
 }
  .b{
    margin-left:70px;
  }
</style>
